package com.ymt.spi.webserver.tomcat.realm;

import java.util.List;
import org.apache.catalina.realm.GenericPrincipal;

/**
 * Generic Principal with tenantId
 * @author Johnny
 *
 */
public class TenantPrincipal extends GenericPrincipal {
	
	private String tenantId;
	
	private String displayName;
	
	private List<String> jaasRoles;
	
	private List<String> bizRoles;
	
	public TenantPrincipal(String name, 
			String password, 
			String displayName,
			String tenantId,
			List<String> jaasRoles,
			List<String> bizRoles) {
		super(name, password, jaasRoles);
		this.displayName = displayName;
		this.tenantId = tenantId;
		this.jaasRoles = jaasRoles;
		this.bizRoles = bizRoles;
	}

	public String getTenantId() {
		return tenantId;
	}

	public void setTenantId(String tenantId) {
		this.tenantId = tenantId;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	
	public List<String> getJaasRoles() {
		return jaasRoles;
	}

	public void setJaasRoles(List<String> jaasRoles) {
		this.jaasRoles = jaasRoles;
	}

	public List<String> getBizRoles() {
		return bizRoles;
	}

	public void setBizRoles(List<String> bizRoles) {
		this.bizRoles = bizRoles;
	}

}
